#define  _CRT_SECURE_NO_WARNINGS 1

#include"sort.h"

void TestMergerSort()
{
	int a[] = { 3,4,5,6,2,1,9,0,8,7 };
	MergerSort(a, sizeof(a) / sizeof(int));
	PrintArr(a,sizeof(a)/sizeof(int));
}

void TestMergerSortNonR()
{
	int a[] = { 3,6,5,4,2,1,9,0,8 };
	MergerSortNonR(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}

void TestCountSort()
{
	int a[] = { 3,6,2,4,2,1,3,6,3,2,4,9,8 };
	CountSort(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}

int main()
{
	//TestMergerSort();
	//TestMergerSortNonR();
	TestCountSort();
	return 0;
}
